import {post} from '../until/request.js'
export default {
  // 获取验证码
  async getVerificationCode (params) {
    return post('/fire/user/verifyode', params)
  },
  // 用户登陆
  async login (params) {
    return post('/fire/user/login', params)
  },
  // 获取微信相关参数appid 签名 时间戳
  async getWeiXinParam (params, mode) {
    return post('/fire/user/getwxapp', params)
  },
  // 用户退出登陆
  async quitLanding (params) {
    return post('/fire/user/logout', params)
  },
  // 设备列表
  async intercalateList (params) {
    return post('/fire/eyes/getdevices', params)
  },
  // 查询传感器详情
  async getdevicedetail (params) {
    return post('/fire/eyes/getdevicedetail', params)
  },
  // 查询设备品类
  async accetcategory (params) {
    return post('/fire/eyes/accetcategory', params)
  },
  // 创建设备关联(将设备指派给资产)
  async assign (params) {
    return post('/fire/eyes/assign', params)
  },

  // 增加设备
  async addevice (params) {
    return post('/fire/eyes/addevice', params)
  },
  // 我的消息列表
  async mymessages (params) {
    return post('/fire/eyes/mymessages', params)
  },
  // 我管理的建筑物列表
  async mybuildinglist (params) {
    return post('/fire/eyes/mybuildinglist', params)
  },
  // 建筑物详情
  async mybuildingdetails (params) {
    return post('/fire/eyes/mybuildingdetails', params)
  },
  // 查询告警状态
  async assetevent (params) {
    return post('/fire/eyes/assetevent', params)
  },
  // 查询消息推送接口
  // 资产列表
  async assetsList (params) {
    return post('/fire/eyes/assetlist', params)
  },
  // 消除告警
  async removeWarning (params) {
    return post('/fire/eyes/dispelalert', params)
  },
  // 上传图片
  async upload (params, config) {
    return post('/fire/eyes/upload', params, config)
  },
  // 下属单位
  async mysuperiors (params) {
    return post('/fire/eyes/mysuperiors', params)
  },
  // 业主单位
  async myproprietors (params) {
    return post('/fire/eyes/myproprietors', params)
  },
  // 维保单位
  async mymaitainors (params) {
    return post('/fire/eyes/mymaitainors', params)
  },
  // 站点
  async sitelist (params) {
    return post('/fire/eyes/sitelist', params)
  },
  // 危险源
  async mydresouces (params) {
    return post('/fire/eyes/mydresouces', params)
  },
  // 下属单位详情
  async mysuperiordetails (params) {
    return post('/fire/eyes/mysuperiordetails', params)
  },
  // 业主单位详情
  async proprietordetails (params) {
    return post('/fire/eyes/proprietordetails', params)
  },
  // 维保单位详情
  async maitainordetails (params) {
    return post('/fire/eyes/maitainordetails', params)
  },
  // 站点详情
  async sitedetail (params) {
    return post('/fire/eyes/sitedetail', params)
  },
  // 危险源详情
  async dresoucetails (params) {
    return post('/fire/eyes/dresoucetails', params)
  },
  // 站点校正
  async sitefix (params) {
    return post('/fire/eyes/sitefix', params)
  },
  // 资产详情
  async assetdetails (params) {
    return post('/fire/eyes/assetdetails', params)
  }

}
